<template>
  <div class="smsImport">
    <!--左侧card 列表  通过组件引入-->
    <ques-import-search></ques-import-search>
    <!--右侧详情  通过 router路由引入-->
    <template>
      <transition name="fade" mode="out-in">
        <router-view>
        </router-view>
      </transition>
    </template>
  </div>
</template>
<script>
  import quesImportSearch from './quesImportSearch.vue'
  export default {
    name: 'questionnaireImport',
    props: {
      refresh: String
    },
    data () {
      return {
      }
    },
    watch: {
//      refresh (cur, old) {
//        if (cur === 'import') {
//          this.$router.push({path: '/index/sms'})
//          this.loading = true
//        }
//      }
    },
    components: {
      quesImportSearch
    },
    beforeMount () {
      this.$router.push('/index/config/questionnaireConfig/import/quesImportAddTemplate')
    }
  }
</script>
<style lang="stylus" scoped>
  .smsImport
    height calc(100vh - 144px)
</style>
